package ai.peanut.selfbase.modules.activity.service.impl;

import ai.peanut.selfbase.modules.activity.dao.ActivityMapper;
import ai.peanut.selfbase.modules.activity.entity.Activity;
import ai.peanut.selfbase.modules.activity.pojo.ActivityParam;
import ai.peanut.selfbase.modules.activity.service.IActivityService;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lichong
 * @since 2018-11-09
 */
@Service
public class ActivityServiceImpl extends ServiceImpl<ActivityMapper, Activity> implements IActivityService {
    @Override
    public Page<Activity> selectActivity(Page<Activity> page, ActivityParam activityParam) {
        List<Activity> list =  baseMapper.selectActivity( page , activityParam ) ;
        return page.setRecords( list ) ;
    }
}
